package com.cxx.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private Integer code;
    private Object object;
    private String message;
    public static Result success(String message){return new Result(1,null,message);}
    public static Result sucess(Object object){
        return new Result(1,object,"success");
    }
    public static Result error(String message){return new Result(0,null,message);}

}
